/*
 * Author: vyouzhi <vyouzhi@163.com>
 * http://www.xda.cn
 *
 * File: main.c
 * Create Date: 2011-09-22 09:12:35
 *
 */
#include <unistd.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>


#include "conf_lib.h"
#include "libevent_lib.h"

int main(int argc, char* argv[]){
	int h;
	char *c;
	if(argc < 2){
		printf("%s --help\n", argv[0]);
		exit(-1);
	}
	while((h = getopt(argc, argv, "c:?")) != -1){
		switch(h){
			case 'c':
				c = optarg;
				break;
			case '?':
			default:
				printf("%s --help\n", argv[0]);
				exit(-1);
		}
	}
	conf_init(c);
	Event_Init();
    return 0;
}
/* vim: set ts=4 sw=4: */

